var express = require('express');
var router = express.Router();

const { getSalesPerson, getSales, addSalesPerson, deleteSalesPerson, updataSalesPerson, getCustomer } = require("../controller/salesPerson");

/**
 * 销售员
 */
router.get('/getSalesPerson', getSalesPerson);
router.get('/getSales', getSales);
router.post('/addSalesPerson', addSalesPerson);
router.post('/deleteSalesPerson', deleteSalesPerson);
router.post('/updataSalesPerson', updataSalesPerson);
router.post('/getCustomer', getCustomer);
module.exports = router;
